Skip to main content

PDF

Type​

widget

Summary​

A PDF widget

Description​

This widget uses the PDFium library to render PDF pages

Compatibility and Support​

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Associated Syntax​

Property

NameSummarySyntax
pageBorderWidthThe width of the border to draw around each pageget the pageBorderWidth of <widget> set the pageBorderWidth of <widget> to <pixels>
hilitedRangeGet and set the currently selected range of text.: get the hilitedRange of <widget> set the hilitedRange of <widget> to <pRange>
borderWidthThe width of the border to drawget the borderWidth of <widget> set the borderWidth of <widget> to <pixels>
clickedImageGet the image data of the image that was clicked on: get the clickedImage of <widget>
lockZoomLocks zoom via user interaction: get the lockZoom of <widget> Syntax: set the lockZoom of <widget> to {true | false}
pageDisplayThe mode of page displayget the pageDisplay of <widget> set the pageDisplay of <widget> to <pageDisplay>
zoomThe zoom of the PDFget the zoom of <widget> set the zoom of <widget> to <zoom>
documentOpenActionGet the action that should be run when opening the documentget the documentOpenAction of <widget>
pageLocationThe x,y location of the current page relative to the cardget the pageLocation of <widget> set the pageLocation of <widget> to <location>
flipPagesUse a page flip animation instead of slideget the flipPages of <widget> set the flipPages of <widget> to { true | false }
passwordThe password used to read password protected PDF documentget the password of <widget> set the password of <widget> to <password>
pageBackColorThe color of the page back during a page flipget the pageBackColor of <widget> set the pageBackColor of <widget> to <color>
formattedRectThe formatted rect of the widgetget the formattedRect of <widget>
pageGravityThe gravity of the pageget the pageGravity of <widget> set the pageGravity of <widget> to { "topLeft", "center" }
currentDestinationGo to a destinationget the currentDestination of <widget> set the currentDestination of <widget> to { <destinationArray> | <destinationName> }
hScrollbarWhether to draw the horizontal scrollbarget the hScrollbar of <widget> set the hScrollbar of <widget> to {true | false}
autoHilightAllow text selection changes via user interaction: get the autoHilight of <widget> set the autoHilight of <widget> to {true | false}
showBorderWhether to draw the borderget the showBorder of <widget> set the showBorder of <widget> to {true | false}
pageBorderColorThe color of the page borderget the pageBorderColor of <widget> set the pageBorderColor of <widget> to <color>
lockScrollLocks scrolling via user interaction: get the lockScroll of <widget> set the lockScroll of <widget> to {true | false}
showPageBorderWhether to draw the page borderget the showPageBorder of <widget> set the showPageBorder of <widget> to {true | false}
fileNameThe file path to a PDF documentget the fileName of <widget> set the fileName of <widget> to <fileData>
documentMetadataGet an array detailing the metadata of the documentget the documentMetadata of <widget>
fileDataThe binary file data of a PDF documentget the fileData of <widget> set the fileData of <widget> to <fileData>
pagePaddingThe width of the padding around each pageget the pagePadding of <widget> set the pagePadding of <widget> to <pixels>
opaqueWhether the background of the widget is filledget the opaque of <widget> set the opaque of <widget> to {true | false}
scrollSet the vertical scroll of the widgetget the scroll of <widget> set the scroll of <widget> to <pixels>
documentPagesGet an array detailing the pages in the documentget the documentPages of <widget>
hilitedRangeTextGet the currently selected text.: get the hilitedRangeText of <widget>
linkStylesAn array of styles to apply to linksget the linkStyles of <widget> set the linkStyles of <widget> to <array>
pageColorThe color of the area the page is drawn on.get the pageColor of <widget> set the pageColor of <widget> to <color>
hScrollSet the horizontal scroll of the widgetget the hScroll of <widget> set the hScroll of <widget> to <pixels>
preserveTransparencyPreserve the transparency of pdf pages by not filling the pageColorget the preserveTransparency of <widget> set the preserveTransparency of <widget> to { true | false }
lockPageLocks page changes via user interaction: get the lockPage of <widget> set the lockPage of <widget> to {true | false}
drawAnnotationsWhether annotations are drawn on the PDFget the drawAnnotations of <widget> set the drawAnnotations of <widget> to {true | false}
threeDWhether to draw the border three Dget the threeD of <widget> set the threeD of <widget> to {true | false}
documentViewerPreferencesGet an array detailing the viewer preferences of the documentget the documentViewerPreferences of <widget>
vScrollbarWhether to draw the vertial scrollbarget the vScrollbar of <widget> set the vScrollbar of <widget> to {true | false}
documentNamedDestinationsGet an array detailing the named destinations in the documentget the documentNamedDestinations of <widget>
numberOfPagesThe number of pages in the loaded documentget the numberOfPages of <widget>
documentBookmarksGet an array detailing the bookmarks in the documentget the documentBookmarks of <widget>
currentPageSet the visible page of the PDF documentget the currentPage of <widget> set the currentPage of <widget> to <pageNumber>
pageRectThe left,top,right,bottom rect of the current page relative to the cardget the pageRect of <widget> set the pageRect of <widget> to <rect>

Message

NameSummarySyntax
pageChangedSent when the displayed page is changed by user actionpageChanged <pPage>, <pPreviousPage>
scrollbarDragSent when the scroll is changed by user actionscrollbarDrag <hScroll>, <vScroll>
zoomChangedSent when the zoom is changed by user actionzoomChanged <pZoom>
linkClickedSent when the user clicks on a link annotationlinkClicked <pAction>
imageClickedSent when the user clicks on an imageimageClicked
selectionChangedSent when the user selects text.selectionChanged <pRange>
Thank you for your feedback!

Was this page helpful?